package com.systop.common.modules.area;

public class AreaUtil {

	public static boolean isProvince(String code) {
		return (code != null) ? code.endsWith("0000") : false;
	}

	public static boolean isCity(String code){
		if (code == null){
			return false;
		}else{
			return code.endsWith("00") && !code.substring(0, 4).endsWith("0");
		}
	}

	public static boolean isCounty(String code){
		return (code != null) ?  ! code.endsWith("0") : false;
	}

}
